Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 10 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | View Code Duplication | var Cache = /** @class */ (function () { |
|
7 | Cache.prototype.get = function () { |
||
8 | if ((this.timeCached + this.timer) < (new Date()).getTime()) { |
||
9 | this.cacheItem = null; |
||
10 | this.timeCached = null; |
||
11 | return null; |
||
12 | } |
||
13 | else { |
||
14 | return this.cacheItem; |
||
15 | } |
||
16 | }; |
||
17 | Cache.prototype.refresh = function (cacheItem) { |
||
24 | //# sourceMappingURL=cache.js.map |